package grape.attend.rest.overtime.mapper;

import grape.attend.rest.overtime.form.OvertimeListForm;
import grape.attend.service.overtime.po.Overtime;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.attend.rest.overtime.form.OvertimeCreateForm;
import grape.attend.rest.overtime.form.OvertimeUpdateForm;
import grape.attend.rest.overtime.form.OvertimeListPageForm;
import grape.attend.rest.overtime.vo.OvertimeVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 加班设置表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-05-09
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface OvertimeWebMapper extends WebMapper<OvertimeVo, Overtime> {

    Overtime formToPo(OvertimeCreateForm f);
    Overtime formToPo(OvertimeUpdateForm f);
    Overtime formToPo(OvertimeListPageForm f);
    Overtime formToPo(OvertimeListForm f);
}
